package com.itheima;
/*
    分析并完成以下需求:

    1.打印[1-1000]之间的整数，数字中包含5，或者是5的倍数的数字要跳过
    2.要求控制台每行打印6个满足条件的数，之间用空格分隔

 */
public class day05 {
    public static void main(String[] args) {
        int count =0;
        for (int i = 0; i < 1000; i++) {
            int ge =i%10;
            int shi =i/10%10;
            int bai =i/10/10%10;
            if (ge!=5&&shi!=5&&bai!=5&&i%5!=0){
                System.out.print(i+" ");
                count++;
                if (count%6==0){
                    System.out.println();
                }
            }
        }
    }
}
